package com.itheima.game2;

public class test {
    public static void main(String[] args) {
        Goods[] goodsArr=new Goods[3];
        Goods g1=new Goods("001","华为P30",3999.99,100);
        Goods g2=new Goods("002","华为P40",4999.99,10);
        Goods g3=new Goods("003","华为P50",5999.99,1);
        goodsArr[0]=g1;
        goodsArr[1]=g2;
        goodsArr[2]=g3;
        System.out.println(goodsArr[0]);
        System.out.println(goodsArr[1]);
        System.out.println(goodsArr[2]);
    }
}
